﻿function renren() {
    var p = {
        link: location.href,
        title: '' /*分享标题(可选)*/
    };
    var s = [];
    for (var i in p) {
        s.push(i + '=' + encodeURIComponent(p[i] || ''));
    }
    document.write(['<a href="http://share.renren.com/share/buttonshare.do?', s.join('&'), '" target="_blank" title="分享到人人"><img src="http://static.youku.com/v1.0.0671/v/img/ico_renren.gif" alt="分享到人人" /></a>'].join(''));
}